module.exports.testString = 'Service started!'

module.exports.QueryAsKeyword = [
    'MRID', 'ID', 'Diagnosis.InternalICDCode'
]
module.exports.defaultKeyword = true
module.exports.extInfos = [
    {
        baseValue: "Diagnosis.DiagnosisICDCode",
        validOptions: "联合分组前缀,联合分组后缀",
        sourceCol: "ICD_Code",
        targetCol: "ICD_Name",
        sql: "select ICD_Name from Dic_ICD_Diagnosis where ICD_VersionID=1 and ICD_Code like '#value#%' order by ICD_Code",
    },
    {
        baseValue: "Diagnosis.InternalICDCode",
        validOptions: "联合分组前缀,联合分组后缀",
        sourceCol: "InternalICDCode",
        targetCol: "InternalICDName",
        sql: "select InternalICDName from DIC_DiagnosisInternalICDCode where InternalICDCode like '#value#%' order by InternalICDCode",
    },
    {
        baseValue: "Diagnosis.DiagnosisGBICDCode",
        validOptions: "联合分组前缀,联合分组后缀",
        sourceCol: "TargetICDCode",
        targetCol: "TargetICDName",
        sql: "select TargetICDName from Map_Diagnosis where TargetICDCode like '#value#%' order by TargetICDCode",
    },
    {
        baseValue: "Diagnosis.PathologyICDCode",
        validOptions: "联合分组前缀,联合分组后缀",
        sourceCol: "ICDCode",
        targetCol: "ICDName",
        sql: "select ICDName from Dic_ICD_Morphology where ICDCode like '#value#%' order by ICDCode",
    }
    ,
    {
        baseValue: "VSurgery.OperateICDCode",
        validOptions: "联合分组前缀,联合分组后缀",
        sourceCol: "ICD_Code",
        targetCol: "ICD_Name",
        sql: "select ICD_Name from Dic_ICD_Operate where ICD_VersionID=5 and ICD_Code like '#value#%' order by ICD_Code",
    }
    ,
    {
        baseValue: "VSurgery.InternalICDCode",
        validOptions: "联合分组前缀,联合分组后缀",
        sourceCol: "InternalICDCode",
        targetCol: "InternalICDName",
        sql: "select InternalICDName from DIC_OperateInternalICDCode where InternalICDCode like '#value#%' order by InternalICDCode",
    }
    ,
    {
        baseValue: "VSurgery.OperateGBICDCode",
        validOptions: "联合分组前缀,联合分组后缀",
        sourceCol: "TargetICDCode",
        targetCol: "TargetICDName",
        sql: "select TargetICDName from Map_Operate where TargetICDCode like '#value#%' order by TargetICDCode",
    }
    ,
    {
        baseValue: "VOperate.OperateICDCode",
        validOptions: "联合分组前缀,联合分组后缀",
        sourceCol: "ICD_Code",
        targetCol: "ICD_Name",
        sql: "select ICD_Name from Dic_ICD_Operate where ICD_VersionID=5 and ICD_Code like '#value#%' order by ICD_Code",
    }
    ,
    {
        baseValue: "VOperate.InternalICDCode",
        validOptions: "联合分组前缀,联合分组后缀",
        sourceCol: "InternalICDCode",
        targetCol: "InternalICDName",
        sql: "select InternalICDName from DIC_OperateInternalICDCode where InternalICDCode like '#value#%' order by InternalICDCode",
    }
    ,
    {
        baseValue: "VOperate.OperateGBICDCode",
        validOptions: "联合分组前缀,联合分组后缀",
        sourceCol: "TargetICDCode",
        targetCol: "TargetICDName",
        sql: "select TargetICDName from Map_Operate where TargetICDCode like '#value#%' order by TargetICDCode",
    }
];

module.exports.OrderNestedDoc = [
    {
        "doc": "Diagnosis",
        "orderProperty": "DiagnosisOrder",
        "name": "出院"
    },
    {
        "doc": "VAllergyDiagnosis",
        "orderProperty": "DiagnosisOrder",
        "name": "过敏"
    },
    {
        "doc": "VClinicDiagnosis",
        "orderProperty": "DiagnosisOrder",
        "name": "门急诊"
    },
    {
        "doc": "VOperate",
        "orderProperty": "OperateOrder",
        "name": "操作"
    },
    {
        "doc": "VSurgery",
        "orderProperty": "OperateOrder",
        "name": "手术"
    },
    {
        "doc": "VTransfer",
        "orderProperty": "TransferOrder",
        "name": ""
    },
    {
        "doc": "VContact",
        "orderProperty": undefined,
        "name": ""
    },
    {
        "doc": "VICU",
        "orderProperty": undefined,
        "name": ""
    },
]